/**
 * @Author Stringzhua
 * @Date 2024/3/7 19:49
 * description:
 */
public class StaticOuterClass {
    //静态常量
    private static String outerName;
    //静态成员方法
    public void display(){
        System.out.println("OuterClass display");
        System.out.println(outerName);
    }
    public static class InnerClass{
        private String innerName;

        public InnerClass() {
            innerName="inner Class";
        }
        public void display(){
            System.out.println("InnerClass display");
            System.out.println(innerName);
        }
    }
    public static void main(String[] args) {
        StaticOuterClass staticOuterClass = new StaticOuterClass();
        staticOuterClass.display();
        StaticOuterClass.InnerClass innerClass=new InnerClass();
        innerClass.display();
    }
}
